* Writable Pagetables
*/
-#ifdef VERBOSE
+#ifdef VVERBOSE
int ptwr_debug = 0x0;
#define PTWR_PRINTK(_f, _a...) \
do { if ( unlikely(ptwr_debug) ) printk( _f , ## _a ); } while ( 0 )
*/
BUG();
}
- PTWR_PRINTK("[%c] disconnected_l1va at %p is %lx\n",
+ PTWR_PRINTK("[%c] disconnected_l1va at %p is %" PRIpte "\n",
PTWR_PRINT_WHICH, ptep, pte.l1);
l1e_remove_flags(pte, _PAGE_RW);
/* Ensure that there are no stale writable mappings in any TLB. */
/* NB. INVLPG is a serialising instruction: flushes pending updates. */
flush_tlb_one_mask(d->cpumask, l1va);
- PTWR_PRINTK("[%c] disconnected_l1va at %p now %lx\n",
+ PTWR_PRINTK("[%c] disconnected_l1va at %p now %" PRIpte "\n",
PTWR_PRINT_WHICH, ptep, pte.l1);
/*
if ( unlikely(!VALID_MFN(gmfn)) )
{
- SH_LOG("l1pte_write_fault: invalid gpfn=%lx", gpfn);
+ SH_VLOG("l1pte_write_fault: invalid gpfn=%lx", gpfn);
*spte_p = l1e_empty();
return 0;
}
if ( unlikely(!VALID_MFN(mfn)) )
{
- SH_LOG("l1pte_read_fault: invalid gpfn=%lx", pfn);
+ SH_VLOG("l1pte_read_fault: invalid gpfn=%lx", pfn);
*spte_p = l1e_empty();
return 0;
}
shadow_audit(d, 0);
- SH_LOG("Free shadow table.");
+ SH_VLOG("Free shadow table.");
}
void shadow_mode_init(void)
d->arch.shadow_ht_free = NULL;
ASSERT(d->arch.shadow_extras_count == 0);
- SH_LOG("freed extras, now %d", d->arch.shadow_extras_count);
+ SH_VLOG("freed extras, now %d", d->arch.shadow_extras_count);
if ( d->arch.shadow_dirty_bitmap != NULL )
{
#ifndef NDEBUG
else if ( mfn < max_page )
{
- SH_LOG("mark_dirty OOR! mfn=%x pfn=%lx max=%x (dom %p)",
+ SH_VLOG("mark_dirty OOR! mfn=%x pfn=%lx max=%x (dom %p)",
mfn, pfn, d->arch.shadow_dirty_bitmap_size, d);
- SH_LOG("dom=%p caf=%08x taf=%" PRtype_info,
+ SH_VLOG("dom=%p caf=%08x taf=%" PRtype_info,
page_get_owner(&frame_table[mfn]),
frame_table[mfn].count_info,
frame_table[mfn].u.inuse.type_info );
if ( unlikely(!VALID_MFN(gmfn)) )
{
- SH_LOG("l1pte_write_fault: invalid gpfn=%lx", gpfn);
+ SH_VLOG("l1pte_write_fault: invalid gpfn=%lx", gpfn);
*spte_p = l1e_empty();
return 0;
}
if ( unlikely(!VALID_MFN(mfn)) )
{
- SH_LOG("l1pte_read_fault: invalid gpfn=%lx", pfn);
+ SH_VLOG("l1pte_read_fault: invalid gpfn=%lx", pfn);
*spte_p = l1e_empty();
return 0;
}
/* We need to allocate a new node. Ensure the quicklist is non-empty. */
if ( unlikely(d->arch.shadow_ht_free == NULL) )
{
- SH_LOG("Allocate more shadow hashtable blocks.");
+ SH_VLOG("Allocate more shadow hashtable blocks.");
extra = xmalloc_bytes(
sizeof(void *) + (shadow_ht_extra_size * sizeof(*x)));